﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SArenaOrderKey extends IMessageBase
    {
        public var process:int;
        public var score:int;
        public var winPerc:int;
        public var winNum:int;
        public var liveLife:int;
        public const _type:int = 7004;
        public static var _regist:SArenaOrderKey = new SArenaOrderKey(true);

        public function SArenaOrderKey(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SArenaOrderKey();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.process);
            param1.writeInt(this.score);
            param1.writeInt(this.winPerc);
            param1.writeInt(this.winNum);
            param1.writeInt(this.liveLife);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.process = param1.readInt();
            this.score = param1.readInt();
            this.winPerc = param1.readInt();
            this.winNum = param1.readInt();
            this.liveLife = param1.readInt();
            return;
        }// end function

    }
}
